<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
    pageEncoding="ISO-8859-1"%>
    <%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>delete message report</title>
<jsp:include page="/WEB-INF/jspf/header.jsp"></jsp:include>
</head>
<body class="metro">
	<div class="grid" style="padding-left: 15px;">
		<div class="row">
			<div class="span4">
				Welcome &quot;${sessionScope.rslt.fname}&quot;

				<div class="grid" style="padding-right: 20px;">
					<jsp:include page="/WEB-INF/jspf/leftmenu.jsp"></jsp:include>
				</div>
				
			</div>
			<div class="span8">
				<div class="div-header">
					<h3 class="head-title">Update report</h3>
				</div>
				<c:choose>
					<c:when test="${requestScope.updt_rslt>0}">Your record updated successfully</c:when>
					<c:otherwise>Error in updating record. Please try again</c:otherwise>
				</c:choose>
<%-- 				<c:forEach var="updtmsg" items="${sessionScope.editdtls}"> --%>
<%-- 					${updtmsg.fname } --%>
<%-- 					${updtmsg.lname } --%>
<%-- 					${updtmsg.phn } --%>
<%-- 					${updtmsg.addrs } --%>
<%-- 				</c:forEach> --%>

			</div>
		</div>
		<div class="row">
			<div class="span8 offset4">
				<div class="div-header">
					<%-- 					<h3 class="head-title">You have ${requestScope.msgsCount} mails in your mail box</h3> --%>
					<h3 class="head-title">You have ${sessionScope.msgsCount}
						mails in your mail box</h3>
				</div>
				<form action="delMessage" method="post">
					<table>
							<c:forEach var="msg" items="${sessionScope.msgs}">
							<tr>
								<td><input type="checkbox" data-show="intermediate"
									name="msgIds" value="${msg.id}" /></td>
								<td><a
										href="javascript:displayMessages('${msg.message}');return false;">
										${msg.teaser} ...</a></td>
										<td>&nbsp;</td>
								<td>${msg.time}</td>
								<td>&nbsp;</td>
								<% 
								//int id = session.get%>
								<td><a href="message.jsp?sid=${msg.sender}">Reply</a>
								</td>
								</tr>
							</c:forEach>
						<tr>
							<td><button type="submit" class="button small info">Delete</button></td>
						</tr>
					</table>
				</form>
			</div>
		</div>
	</div>
</body>
</html>